package com.okr.okroperation.web.controller;

import com.okr.okroperation.biz.service.dto.req.CalcSubReq;
import com.okr.okroperation.biz.service.dto.res.CalcSubRes;
import com.okr.okroperation.biz.service.nb.InterfaceMode;
import com.okr.okroperation.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;



@RestController
@RequestMapping("/operation/interfaceMode/")
public class InterfaceModeController {
    @Autowired
    InterfaceMode interfaceModeService;

    @PostMapping("calculateSubtractOfTwoNumCom")

    public OkrResult<CalcSubRes>   obtainGetPublicFieldCacheCom   (@RequestBody @Validated CalcSubReq reqDTO){

        CalcSubRes resData = interfaceModeService.calculateSubtractOfTwoNumCom(reqDTO);

        return OkrResult.success(resData);
    }
}
